﻿using System;

namespace HslCommunication.Core.IMessage
{
	/// <summary>
	/// 埃夫特机器人的消息对象
	/// </summary>
	// Token: 0x02000151 RID: 337
	public class EFORTMessage : INetMessage
	{
		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.ProtocolHeadBytesLength" />
		// Token: 0x170005C3 RID: 1475
		// (get) Token: 0x06001CF5 RID: 7413 RVA: 0x0008CF06 File Offset: 0x0008B106
		public int ProtocolHeadBytesLength
		{
			get
			{
				return 18;
			}
		}

		/// <inheritdoc cref="M:HslCommunication.Core.IMessage.INetMessage.GetContentLengthByHeadBytes" />
		// Token: 0x06001CF6 RID: 7414 RVA: 0x0008CF0A File Offset: 0x0008B10A
		public int GetContentLengthByHeadBytes()
		{
			return (int)(BitConverter.ToInt16(this.HeadBytes, 16) - 18);
		}

		/// <inheritdoc cref="M:HslCommunication.Core.IMessage.INetMessage.CheckHeadBytesLegal(System.Byte[])" />
		// Token: 0x06001CF7 RID: 7415 RVA: 0x0008CF1C File Offset: 0x0008B11C
		public bool CheckHeadBytesLegal(byte[] token)
		{
			return this.HeadBytes != null;
		}

		/// <inheritdoc cref="M:HslCommunication.Core.IMessage.INetMessage.GetHeadBytesIdentity" />
		// Token: 0x06001CF8 RID: 7416 RVA: 0x00047BE1 File Offset: 0x00045DE1
		public int GetHeadBytesIdentity()
		{
			return 0;
		}

		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.HeadBytes" />
		// Token: 0x170005C4 RID: 1476
		// (get) Token: 0x06001CF9 RID: 7417 RVA: 0x0008CF27 File Offset: 0x0008B127
		// (set) Token: 0x06001CFA RID: 7418 RVA: 0x0008CF2F File Offset: 0x0008B12F
		public byte[] HeadBytes { get; set; }

		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.ContentBytes" />
		// Token: 0x170005C5 RID: 1477
		// (get) Token: 0x06001CFB RID: 7419 RVA: 0x0008CF38 File Offset: 0x0008B138
		// (set) Token: 0x06001CFC RID: 7420 RVA: 0x0008CF40 File Offset: 0x0008B140
		public byte[] ContentBytes { get; set; }

		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.SendBytes" />
		// Token: 0x170005C6 RID: 1478
		// (get) Token: 0x06001CFD RID: 7421 RVA: 0x0008CF49 File Offset: 0x0008B149
		// (set) Token: 0x06001CFE RID: 7422 RVA: 0x0008CF51 File Offset: 0x0008B151
		public byte[] SendBytes { get; set; }
	}
}
